package com.gdougms.service;

import com.gdougms.entity.User;

import java.util.List;

public interface UserService {

    List<User> getUsers();

    int insertUser(User user);

    User getUserByNumberOrIDCard(String num);

    User login(String num,String pwd);

    int register(String name,String id_card,String password,String email);

    int updatePassword(String password,String username);

    int bindEmail(String email,String number);

    List<User> getUserList();

    int deleteUser(String username);

    int addUser(String name,String number,String idCard,String password,int role,String email);

    //管理员修改用户信息
    int updateUser(String name,String number,String idCard,String password,String email,int id);

    User getIfUserById(int id);

    //是否绑定邮箱
    String userIfBindEmail(String number);

}
